-- GENERATED SPELL FOR [Spirit of Veng] --


function spell0_12243(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(14030,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12243', 6500, 1)
end

function spell1_12243(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(18651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12243', 605, 1)
end

function spell2_12243(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12243', 608, 1)
end

function Sorts_12243(pUnit, Event)
local choix_sorts_12243 = math.random(0, 2)
if choix_sorts_12243 == 0 then
pUnit:RegisterEvent('spell0_12243', 1, 1)
end
if choix_sorts_12243 == 1 then
pUnit:RegisterEvent('spell1_12243', 1, 1)
end
if choix_sorts_12243 == 2 then
pUnit:RegisterEvent('spell2_12243', 1, 1)
end
end

function mob12243_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12243', math.random(1500, 3000), 1)
end

function mob12243_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12243_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12243_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12243, 1, 'mob12243_Action')
RegisterUnitEvent(12243, 2, 'mob12243_Leave')
RegisterUnitEvent(12243, 3, 'mob12243_Kill')
RegisterUnitEvent(12243, 4, 'mob12243_Die')
